package com.cuit.pojo;

public class Patient {

    private String p_id;
    private String p_name;
    private String p_password;
    private String id_card;
    private String p_sex;
    private Integer p_age;
    private String case_record;
    private Integer p_acid;

    public Patient(){}

    public Patient(String p_id,String p_name,String p_password){
        this.p_id=p_id;
        this.p_name=p_name;
        this.p_password=p_password;
    }

    public Patient(String p_id, String p_name, String p_password, String p_sex, String p_age,String id_card) {
        this.p_id=p_id;
        this.p_name=p_name;
        this.p_password=p_password;
        this.p_sex=p_sex;
        this.p_age=Integer.parseInt(p_age);
        this.id_card=id_card;
    }

    public Patient(String p_id, String p_password) {
        this.p_id=p_id;
        this.p_password=p_password;
    }

    public Patient(String p_name, String p_id, String id_card, String p_age, String p_sex) {
        this.p_name=p_name;
        this.p_id=p_id;
        this.id_card=id_card;
        this.p_age=Integer.parseInt(p_age);
        this.p_sex=p_sex;
    }


    @Override
    public String toString() {
        String s="";
        s+=this.p_id+" "+this.p_name+" "+this.p_password+" "+this.id_card+" "+this.p_sex+" "+this.p_age+" "+this.p_acid;
        return s;
    }

    public String getP_id() {
        return p_id;
    }

    public void setP_id(String p_id) {
        this.p_id = p_id;
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name;
    }

    public String getP_password() {
        return p_password;
    }

    public void setP_password(String p_password) {
        this.p_password = p_password;
    }

    public String getId_card() {
        return id_card;
    }

    public void setId_card(String id_card) {
        this.id_card = id_card;
    }

    public String getP_sex() {
        return p_sex;
    }

    public void setP_sex(String p_sex) {
        this.p_sex = p_sex;
    }

    public Integer getP_age() {
        return p_age;
    }

    public void setP_age(Integer p_age) {
        this.p_age = p_age;
    }

    public String getCase_record() {
        return case_record;
    }

    public void setCase_record(String case_record) {
        this.case_record = case_record;
    }

    public Integer getP_acid() {
        return p_acid;
    }

    public void setP_acid(Integer p_acid) {
        this.p_acid = p_acid;
    }

}
